package com.atstudy.headline.web.app.service.impl;

import com.atstudy.headline.entity.UserFollows;
import com.atstudy.headline.entity.Users;
import com.atstudy.headline.web.app.mapper.UserFollowsMapper;
import com.atstudy.headline.web.app.service.UserFollowsService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
* @author A
* @description 针对表【user_follows(用户关注关系表)】的数据库操作Service实现
* @createDate 2025-06-12 13:55:01
*/
@Service
public class UserFollowsServiceImpl extends ServiceImpl<UserFollowsMapper, UserFollows>
    implements UserFollowsService {


    @Override
    public IPage<Users> getFollowing(IPage<Users> page, Integer userId) {
        return baseMapper.getFollowing(page, userId);
    }

    @Override
    public IPage<Users> getFollower(IPage<Users> page, Integer userId) {
        return baseMapper.getFollower(page, userId);
    }
}




